@import './base.css';

#app {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-weight: normal;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

/* 修复Element Plus下拉框问题 */
.el-select {
  width: 100%;
}

.el-select .el-input {
  width: 100%;
  }

.el-select-dropdown__item {
  white-space: normal !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 8px 20px !important;
}

.el-select-dropdown {
  min-width: 200px !important;
  }

/* 确保表单项宽度一致 */
.el-form-item__content {
  width: 100%;
}

/* 全局修复数字输入框样式 */
.el-input-number {
  width: 100% !important;
}

.el-input-number .el-input__inner {
  text-align: center !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  color: #606266 !important; /* 确保文本颜色可见 */
  opacity: 1 !important;
  visibility: visible !important;
}

.el-input-number__decrease,
.el-input-number__increase {
  width: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1 !important; /* 确保按钮在最上层 */
}

/* 确保输入框的文本可见 */
.el-input__inner {
  opacity: 1 !important;
  visibility: visible !important;
  color: #606266 !important;
}

/* 优化表格单元格内容的间距 */
.el-table .cell {
  padding-left: 8px;
  padding-right: 8px;
}

/* 移除了限制布局的媒体查询 */
